home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2002 January / maximum-cd-2002-01.iso / Files / Game demos / Codename Outbreak / outbreakdemo.exe / %MAINDIR% / doc / serverini.txt < prev    next >
Encoding:
Text File  |  2001-11-07  |  2.4 KB  |  91 lines

  1. ***********************************************************
  2.             Server.ini file format description
  3. ***********************************************************
  4.  
  5. Server.ini file is designed for simplifying routine 
  6. operations that need to be performed at server
  7. startup. [coop_autoexec], [ctf_autoexec], [crystal_autoexec],
  8. [blackbox_autoexec] sections define the command set for
  9. corresponding game modes for automatical execution. The autoexec
  10. section for blackbox game may look like:
  11.  
  12. Sample1:
  13. [blackbox_autoexec]
  14. cmd1=autobalance 0
  15. cmd2=autokick 0
  16. cmd3=levelrotationtime 0
  17. cmd4=timelimit 0
  18. cmd5=scorelimit 2000
  19.  
  20. As you see each command is to be numbered. The game code 
  21. executes commands subsequently from 1 to infinite. 
  22. If there is a gap in numeration then some commands may 
  23. not be executed! For instance, in the following
  24. sample only cmd1 and cmd2 will be executed and 
  25. other will be droped.
  26.  
  27. Sample2:
  28. [blackbox_autoexec]
  29. cmd1=autobalance 0
  30. cmd2=autokick 0
  31. cmd5=levelrotationtime 0
  32. cmd6=timelimit 0
  33. cmd8=scorelimit 2000
  34.  
  35. Other interesting group of sections is: [coop_levels],[ctf_levels],
  36. [crystal_levels],[blackbox_levels]. These allow fixing a set
  37. of levels supported by the server and specifying their parameters.
  38. Flags "dr","dg","dm","df" disable use of rockets, grenades,
  39. mines and flares by the player. Flag "ex" enables use of external
  40. camera in CTF/BlackBox/Crystal. External camera is disabled in these
  41. games by default. The sample below allows server
  42. to run either lev\level1_bb.lev or lev\level6_bb.lev in 
  43. blackbox mode. Moreover, players on lev\level6_bb.lev are
  44. not allowed to use grenades and rockets:
  45.  
  46. Sample3:
  47. [blackbox_levels]
  48. level1=lev\level1_bb.lev
  49. level2=lev\level6_bb.lev dg dr
  50.  
  51. And the final sample shows the whole server.ini file.
  52.  
  53. Sample4 (server.ini):
  54. [coop_autoexec]
  55.  
  56. [ctf_autoexec]
  57. cmd1=autobalance 0
  58. cmd2=autokick 0
  59. cmd3=levelrotationtime 30
  60. cmd4=timelimit 30
  61. cmd5=scorelimit 100
  62.  
  63. [crystal_autoexec]
  64. cmd1=autobalance 0
  65. cmd2=autokick 0
  66. cmd3=levelrotationtime 30
  67. cmd4=timelimit 30
  68. cmd5=scorelimit 2000
  69.  
  70. [blackbox_autoexec]
  71. cmd1=autobalance 0
  72. cmd2=autokick 0
  73. cmd3=levelrotationtime 0
  74. cmd4=timelimit 0
  75. cmd5=scorelimit 2000
  76.  
  77. [coop_levels]
  78.  
  79. [ctf_levels]
  80. level1=lev\level6_ctf.lev
  81. level2=lev\level8_ctf.lev
  82.  
  83. [crystal_levels]
  84.  
  85. [blackbox_levels]
  86. level1=lev\level1_bb.lev
  87. level2=lev\level2_bb.lev
  88.  
  89.  
  90.  
  91.